import './assets/main.css'
import { createApp } from 'vue'
import App from './App.vue'
//引入router
import router from './router'
//引入axios
import axios from './utils/axios'
//引入store
import store from './store'
//引入mock
import './mock/index'

//引入pxTorem
import 'amfe-flexible'
//1.引入你需要的组件
import { Button, Form, Field, CellGroup, Toast, Tabbar, TabbarItem, Swipe, SwipeItem,
    ActionBar, ActionBarIcon, ActionBarButton, Empty, Cell } from 'vant'
//2.引入组件样式
import 'vant/lib/index.css';

const app = createApp(App)
app.use(router)

//3.注册你需要的组件
app.use(Button);
app.use(Form);
app.use(Field);
app.use(CellGroup);
app.use(Toast);
app.use(Tabbar);
app.use(TabbarItem);
app.use(Swipe);
app.use(SwipeItem);
app.use(ActionBar);
app.use(ActionBarIcon);
app.use(ActionBarButton);
app.use(Empty);
app.use(Cell);
app.use(store)
app.use(router)



//axios全局配置
app.config.globalProperties.$axios = axios




app.mount('#app')
